import 'package:event_bus/event_bus.dart';

class EventBusUtil {
  static EventBus _instance;

  EventBusUtil._();

  static EventBus getInstance() {
    if (_instance == null) {
      _instance = EventBus();
    }
    return _instance;
  }

  void destroy() {
    if (null != _instance) {
      _instance.destroy();
    }
  }
}
